'''
* This is the projet for Brtc LlmOps Platform
* @Author Leon-liao <liaosiliang@alltman.com>
* @Description //TODO 
* @File: 2_study_str_combine_to_prompt.py
* @Time: 2025/7/6
* @All Rights Reserve By Brtc
'''
from langchain_core.prompts import PromptTemplate

# 提示可以 用 + 来拼接字符串
prompt =  PromptTemplate.form_template("请讲一个关于{subject}的笑话") + " 让我开心一下" + "使用{language}语言"

#{"key":"value", "key": value}(,,,,)[,,,,,]
print(prompt.invoke({"subject": "程序员","language": "中文"}).to_string())


